﻿<?xml version="1.0" encoding="utf-8" ?>

<cls:class
	name="Application"
	static="true"
	base="http://metalx.org/Object"
	type="http://metalx.org/Application"
	xmlns:cls="http://metalx.org/Class"
	xmlns="http://metalx.org/CodeX/Operators">

	<cls:method name="Start" type="http://metalx.org/Application">
		<cls:parameter name="application" type="http://metalx.org/Application"/>
		<cls:parameter name="console" type="http://metalx.org/Console"/>
	</cls:method>

	<cls:method name="Test" type="http://metalx.org/Integer">
		<int16Binary id="myShortBinary">0000000000000000</int16Binary>
		<int32Binary id="myIntBinary">00000000000000000000000000000000</int32Binary>
		<int64Binary id="myLongBinary">0000000000000000000000000000000000000000000000000000000000000000</int64Binary>
		<string id="myString">Hello World!</string>
		<bool id="myBool">True</bool>
		<uint32 id="myUInt">2349859819</uint32>
		<bool id="myBoolFalse">False</bool>
		<object id="myApplication" type="http://metalx.org/Application"/>
		<int8Hex id="myByte">a8</int8Hex>
		<int16Hex id="myShort">a84a</int16Hex>
		<int32Hex id="myInt">a81ff2d6</int32Hex>
		<int64Hex id="myLong">abacadababadbeef</int64Hex>

		<if isTrue="myApplication">
			<then>
				<call type="http://metalx.org/Application" method="Start">
					<parameter name="application" ref="myApplication"/>
				</call>
			</then>
			<else-if isTrue="myApplication">
			</else-if>
			<else>
			</else>
		</if>
	</cls:method>

	<cls:method name="ToBoolean" type="http://metalx.org/Boolean">
		<cls:parameter name="value" type="http://metalx.org/Application"/>
		<cls:parameter name="result" type="http://metalx.org/Boolean"/>
	</cls:method>
</cls:class>